package com.br.gerenciadorconteudo.negocio;

import com.br.gerenciadorconteudo.persistencia.CadastroSeriePersistencia;

import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.net.Uri;

public class CadastroSerieModel {

	private ContextWrapper context;
	private CadastroSeriePersistencia cadastroSeriePersistencia;

	public CadastroSerieModel(ContextWrapper context) {
		this.context = context;
	}

	public void decodeFile(String filePath) {
		// // Decode image size
		// BitmapFactory.Options o = new BitmapFactory.Options();
		// o.inJustDecodeBounds = true;
		// BitmapFactory.decodeFile(filePath, o);
		//
		// // The new size we want to scale to
		// final int REQUIRED_SIZE = 1024;
		//
		// // Find the correct scale value. It should be the power of 2.
		// int width_tmp = o.outWidth, height_tmp = o.outHeight;
		// int scale = 1;
		// while (true) {
		// if (width_tmp < REQUIRED_SIZE && height_tmp < REQUIRED_SIZE)
		// break;
		// width_tmp /= 2;
		// height_tmp /= 2;
		// scale *= 2;
		// }
		//
		// // Decode with inSampleSize
		// BitmapFactory.Options o2 = new BitmapFactory.Options();
		// o2.inSampleSize = scale;
		// bitmap = BitmapFactory.decodeFile(filePath, o2);
		//
		// imgView.setImageBitmap(bitmap);

	}

	public String buscaPathImagem(Uri selectedImageUri) {

		cadastroSeriePersistencia = new CadastroSeriePersistencia(context);

		return "";
	}

}
